﻿using System;
using System . Collections . Generic;
using System . Linq;
using System . Text;

namespace WenceyWang . RichMan4L . Maps
{
	/// <summary>
	/// 指示地图或地图元素的尺寸
	/// </summary>
	[CLSCompliant ( true )]
	public struct MapSize
	{
		/// <summary>
		/// 尺寸的X值
		/// </summary>
		public int X { get; private set; }

		/// <summary>
		/// 尺寸的Y值
		/// </summary>
		public int Y { get; private set; }

		/// <summary>
		/// 小地图元素尺寸
		/// </summary>
		public static readonly MapSize Small = new MapSize ( 1 , 1 );

		/// <summary>
		/// 中等地图元素尺寸
		/// </summary>
		public static readonly MapSize Medium = new MapSize ( 2 , 2 );

		/// <summary>
		/// 大地图元素尺寸
		/// </summary>
		public static readonly MapSize Large = new MapSize ( 4 , 4 );

		/// <summary>
		/// 创建新的MapSize
		/// </summary>
		/// <param name="x">尺寸的X值</param>
		/// <param name="y">尺寸的Y值</param>
		public MapSize ( int x , int y )
		{
			X = x;
			Y = y;
		}
	}
}
